#!/bin/bash
resultstring=`cat /proc/mdstat | grep -c "\[UU\]"`
echo $resultstring